package web.fabrimind.tas.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import web.fabrimind.common.annotation.Excel;
import web.fabrimind.common.core.domain.BaseEntity;

/**
 * 物料入库申请明细对象 material_inbound_apply_detail
 * 
 * @author ruoyi
 * @date 2025-03-30
 */
public class MaterialInboundApplyDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 明细ID */
    private Long detailId;

    /** 申请ID */
    @Excel(name = "申请ID")
    private Long applyId;

    /** 物料ID */
    @Excel(name = "物料ID")
    private Long materialId;

    /** 数量 */
    @Excel(name = "数量")
    private BigDecimal quantity;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 库位ID */
    @Excel(name = "库位ID")
    private Long locationId;

    /** 批次号 */
    @Excel(name = "批次号")
    private String batchNo;

    /** 来源单号 */
    @Excel(name = "来源单号")
    private String sourceOrder;


    /** 仓库ID */
    @Excel(name = "仓库ID")
    private Long warehouseId;


    public void setDetailId(Long detailId) 
    {
        this.detailId = detailId;
    }

    public Long getDetailId() 
    {
        return detailId;
    }
    public void setApplyId(Long applyId) 
    {
        this.applyId = applyId;
    }

    public Long getApplyId() 
    {
        return applyId;
    }
    public void setMaterialId(Long materialId) 
    {
        this.materialId = materialId;
    }

    public Long getMaterialId() 
    {
        return materialId;
    }
    public void setQuantity(BigDecimal quantity) 
    {
        this.quantity = quantity;
    }

    public BigDecimal getQuantity() 
    {
        return quantity;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setLocationId(Long locationId) 
    {
        this.locationId = locationId;
    }

    public Long getLocationId() 
    {
        return locationId;
    }
    public void setBatchNo(String batchNo) 
    {
        this.batchNo = batchNo;
    }

    public String getBatchNo() 
    {
        return batchNo;
    }
    public void setSourceOrder(String sourceOrder) 
    {
        this.sourceOrder = sourceOrder;
    }

    public String getSourceOrder() 
    {
        return sourceOrder;
    }
    public void setWarehouseId(Long warehouseId) 
    {
        this.warehouseId = warehouseId;
    }

    public Long getWarehouseId()     
    {
        return warehouseId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("detailId", getDetailId())
            .append("applyId", getApplyId())
            .append("materialId", getMaterialId())
            .append("quantity", getQuantity())
            .append("unit", getUnit())
            .append("locationId", getLocationId())
            .append("batchNo", getBatchNo())
            .append("sourceOrder", getSourceOrder())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("warehouseId", getWarehouseId())
            .toString();
    }
}
